#!/bin/bash

rm *.o
/home/michael/clang+llvm-2.9-i686-linux/bin/clang -march=i686 -O1 -emit-llvm -c test.c
/home/michael/clang+llvm-2.9-i686-linux/bin/clang -march=i686 -O3 -emit-llvm -c prefetch_lib.cpp
/home/michael/clang+llvm-2.9-i686-linux/bin/llvm-link test.o prefetch_lib.o -o prog.o
echo 3 > /proc/sys/vm/drop_caches
llvm-2.9/Debug/bin/lli -load=/usr/lib/librt.so -disable-lazy-compilation prog.o
